package com.jzg.sys.dao.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author lzp
 * @since 2019-02-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("BASE_AREA")
public class BaseArea extends Model<BaseArea> {

    private static final long serialVersionUID = 1L;

    /**
     * 区域编码
     */
    @TableId("AREA_CODE")
    private String areaCode;

    /**
     * 区域名称
     */
    @TableField("AREA_NAME")
    private String areaName;

    /**
     * 状态
     */
    @TableField("STATUS")
    private Boolean status;


    @Override
    protected Serializable pkVal() {
        return this.areaCode;
    }

}
